<%--

  @author Kusal Samarakoon
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<div id="set_up-action-home-title" class="module-home-title">
    <s:a href="home.do"><img src="${pageContext.request.contextPath}/images/post_letter.png"
                                    alt="Letter Of Confirmation"><span><s:label
            value="%{getText('setup_action.label')}"/></span></s:a>
</div>

<div id="setUp-action-form">
    <div class="page-title">
        <h2><s:label value="%{getText('setup_action.label')}"/></h2>
    </div>
    <s:if test="hasActionErrors() || hasActionMessages()">
        <div id="message-box" class="message-box">
            <div class="action-msg"><s:actionmessage/></div>
            <div class="action-err"><s:actionerror/></div>
        </div>
    </s:if>

    <s:form id="setUp-action" name="setUp-action"
            method="POST">
        <table class="width-100">

            <tr>
                <td><s:label value="%{getText('action.label')}"/></td>
                <td colspan="3"><s:textfield id="action" name="action.action"/></td>
            </tr>
            <tr>
                <td><s:label value="%{getText('due_date.label')}"/>
                    <s:label value="%{getText('date_format.label')}" cssClass="date-format"/></td>
                <td colspan="3"><s:textfield id="endingDate" name="action.dueDate"
                                             onKeyPress="return dateNumbersOnly(event,true)"/></td>
            </tr>
        </table>
        <br/>

        <div class="form-button-div right-align">
            <s:submit action="home" value="%{getText('save.label')}"/>
            <s:submit cssClass="cancel" action="home" value="%{getText('back.label')}"/>
        </div>
        <s:hidden name="applicationId"/>
    </s:form>

</div>